<?php

class User_Model extends Auth_User_Model {
    /*protected $has_many;
    protected $has_and_belongs_to_many;*/

    /**
     * Check unique email
     * @param string $email
     * @return true if email is unique
     */
    public static function exists_email($email)
    {
        $email_exists = (bool) ORM::factory('user')->where('email', $email)->count_all();
        return (bool)$email_exists;
    }
}

?>
